package com.violet.myorm.core.sql;

import java.util.List;

public class QuerySql extends Sql {

    public QuerySql(String tableName, List<String> fieldsNames) {
        sql.append("SELECT ");
        setQueryFields(fieldsNames);
        sql.append(" FROM ").append(tableName);
    }

    public QuerySql setWhere(List<String> where) {
        return (QuerySql) super.setWhere(where);
    }

    public QuerySql setLimit(int offset, int size) {
        return (QuerySql) super.setLimit(offset, size);
    }
}
